package dao;

import java.util.List;

public interface DAO<E> {
	public <T> T openPersistence();

	public <T> void closePersistence(T persistence);

	public <T extends E> Long salvar(T t);

	public <T extends E> void atualizar(T t);

	public <T extends E> T recuperarPorId(Long id);

	public <T extends E> T remover(Long id);

	public <T extends E> List<T> recuperarTodos();
}
